//
//  URLTool.m
//  MYIOSFP
//
//  Created by mobileteam on 13-9-30.
//  Copyright (c) 2013年 陈 靓. All rights reserved.
//

#import "URLTool.h"

@implementation URLTool

+(NSString *)URLEncodedString:(NSString *)url
{
    NSString *encodedString = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,
                                                                                  (CFStringRef)url,
                                                                                  (CFStringRef)@"!$&'()*+,-./:;=?@_~%#[]",
                                                                                  NULL,
                                                                                  kCFStringEncodingUTF8));
    return encodedString;
}

@end
